package com.tony.mindhr.mapper;

import com.tony.mindhr.model.HrRole;
import org.apache.ibatis.annotations.Param;

/**
 * Created with IntelliJ IDEA.
 *
 * @Title: HrRoleMapper
 * @Auther: 皮蛋布丁
 * @Date: 2021/04/19/14:05
 * @Description:
 */
public interface HrRoleMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(HrRole record);

    int insertSelective(HrRole record);

    HrRole selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(HrRole record);

    int updateByPrimaryKey(HrRole record);

    void deleteByHrid(Integer hrid);

    Integer addRole(@Param("hrid") Integer hrid,@Param("rids") Integer[] rids);
}
